<?php

class Login_auth extends CI_Model{

	function __construct(){
		parent::__construct();
	}
	function auth(){
		
		$q = "select * from clients where BINARY email = '".$this->input->post('email')."' and BINARY password = '".$this->input->post('password')."'";
		
		$res = $this->db->query($q);
		
		if($res->num_rows() > 0){
			return $res->row();
		}
		else{
			return false;
		}
		
	}// end function auth..

}// end login model..